2020-2021 Sunseeker Telemetry and Lighting System
timer_b_ex4_upModeOperation.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define TIMER_PERIOD   50000
 

Functions

void main (void)
 
void TIMERB0_ISR (void)
 

Macro Definition Documentation

◆ TIMER_PERIOD

#define TIMER_PERIOD   50000

Timer_B, Toggle P1.0, CCR0 Up Mode ISR, DCO SMCLK

Description: Toggle P1.0 using software and TB_0 ISR. Timer_B is configured for up mode, thus the timer overflows when TBR counts to CCR0. In this example, CCR0 is loaded with 50000. ACLK = n/a, MCLK = SMCLK = TBCLK = default DCO ~1.045MHz

Tested On: MSP430F5229

/ |
RST

| | | P1.0|-->LED

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • Timer peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • Timer B0

Definition at line 61 of file timer_b_ex4_upModeOperation.c.

Function Documentation

◆ main()

void main ( void  )

Definition at line 63 of file timer_b_ex4_upModeOperation.c.

References __no_operation(), param, and TIMER_PERIOD.

◆ TIMERB0_ISR()

void TIMERB0_ISR ( void  )

Definition at line 106 of file timer_b_ex4_upModeOperation.c.